package org.example.entity.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author 袁龙林
 * @since 2024-08-18
 */
@Getter
@Setter
@TableName("views")
public class Views implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 网站的总浏览量（包含所有文章及页面的浏览量）
     */
    @TableField("total_views")
    private Long totalViews;

    /**
     * 昨天的总浏览量
     */
    @TableField("yesterday_views")
    private Long yesterdayViews;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("update_time")
    private LocalDateTime updateTime;
}
